<?php use_helper('Validation') ?>

<h1>Change Email</h1>

<?php echo form_tag('@editemail') ?>

<?php echo input_hidden_tag('username',$sf_user->getGuardUser()->getUserName()) ?>
<label>Old Email</label>
<?php echo $sf_user->getGuardUser()->getProfile()->getEmailAddress() ?>
<label>New Email</label>
<?php echo form_error('email') ?>
<?php echo input_tag('email') ?>
<label>Re-enter Email</label>
<?php echo form_error('email_bis') ?>
<?php echo input_tag('email_bis') ?>
<label>Password</label>
<?php if ($sf_request->hasError('password')): ?>
<?php echo form_error('password') ?>
<?php else: ?>
<?php echo form_error('username') ?>
<?php endif; ?>
<?php echo input_password_tag('password') ?>
<br /><br />
<?php echo submit_tag('Submit') ?>
</form>
